home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr48 / 386p_200.zip / CHARIO.INC < prev    next >
Text File  |  1994-10-10  |  3KB  |  131 lines

  1. ; CHARACTER BITMAP I/O MODULE
  2. extrn _CHRPAL:DWORD
  3.       ; pointer to the 12 RGB palette entries describing the values
  4.       ; of the 12 "character set palette entries" the loaded character set
  5.       ; will use.
  6.       ; The palette entries uses the indexes from BRIGHT1_TEXT to BRIGHT6_TEXT
  7.       ; and from DARK1_TEXT to DARK6_TEXT
  8.       ;
  9.  
  10. extrn _CHRFNT:DWORD
  11.       ; pointer to the current character bitmap buffer
  12.       ; (a block of 8Kbytes containing the bitmaps of 128 ascii chars)
  13.  
  14. extrn _CHRMENU1:DWORD
  15.       ; first character set
  16. extrn _CHRMENU2:DWORD
  17.       ; second character set (derived from the first set)
  18.  
  19. extrn _LoadCharSet:near
  20.         ; esi = pointer to filename containing the "base" character set
  21.         ; it sets _CHRFONT,_CHRMENU1,_CHRMENU2,and the text color palette
  22.         ; entries.
  23.  
  24. extrn _PutString:near
  25.          ; edi = screen base
  26.          ; eax = x in pixels
  27.          ; edx = y in pixels
  28.          ; ebx = stringz
  29.  
  30. extrn _PutHex: near
  31.          ; scrive il numero BCD a 32 bit
  32.          ; contenuto in ebx
  33.          ; edi = screen dest
  34.          ; eax = x in pixels
  35.          ; edx = y in pixels
  36.          ; ecx = digits to use
  37.          ; ebx = number to write
  38.  
  39. extrn _PutInt: near
  40.          ; scrive il numero BCD a 32 bit
  41.          ; contenuto in ebx
  42.          ; edi = screen dest
  43.          ; eax = x in pixels
  44.          ; edx = y in pixels
  45.          ; ecx = digits to use
  46.          ; ebx = integer number to write
  47.  
  48. extrn _PutUnsigned: near
  49.          ; scrive il numero BCD a 32 bit
  50.          ; contenuto in ebx
  51.          ; edi = screen dest
  52.          ; eax = x in pixels
  53.          ; edx = y in pixels
  54.          ; ecx = digits to use
  55.          ; ebx = unsigned integer number to write
  56.          
  57. extrn _GetString: near
  58.         ; edi= scr dest
  59.         ; eax= x in pixels
  60.         ; edx= y in pixels
  61.         ; ecx= max. string size (excluding terminal NUL )
  62.         ; ebx= stringz (gets automatically truncated to NUL on entry)
  63.         ;      must point to a sequence of at least ecx+1 bytes
  64.  
  65. extrn _GetInt: near
  66.         ; in:
  67.         ; edi= scr dest
  68.         ; eax= x in pixels
  69.         ; edx= y in pixels
  70.         ; ecx= max. digits including sign (cut to 11 digits if bigger)
  71.         ; out:
  72.         ; ebx= returned value , in the range +/- 1999999999
  73.         ;      if you enter values out of range, the procedure
  74.         ;      will retry automatically
  75.  
  76. extrn _GetUnsigned: near
  77.         ; in:
  78.         ; edi= scr dest
  79.         ; eax= x in pixels
  80.         ; edx= y in pixels
  81.         ; ecx= max. digits (cut to 10 if bigger)
  82.         ; out:
  83.         ; ebx= returned value , in the range 0..3999999999
  84.         ;      if you enter values out of range, the procedure
  85.         ;      will retry automatically
  86.  
  87.  
  88. ; special codes for XGE character bitmaps
  89.  
  90. ; BAR display
  91. BAR1=1
  92. BAR2=2
  93. BAR3=3
  94. BAR4=4
  95. BAR5=5
  96. BAR6=6
  97. BAR7=7
  98. BAR8=8
  99. ARROW_MINUS=9
  100. ARROW_PLUS=10
  101.  
  102. ; ON/OFF flags
  103. FLAG_OFF=11
  104. FLAG_ON=12
  105.  
  106. ; various symbols
  107. COPYRIGHT=13
  108. YEN=14
  109. LIRA=15
  110. BAR0=16
  111. CROSS=17
  112. MARINE_CROSS=18
  113. HALFMOON=19
  114. YINGYANG=20
  115. DAVID_STAR=21
  116. MILITARY_STAR=22
  117. USSR_SIGN=23
  118.  
  119. SKULL=24
  120. SAD_FACE=25
  121. NORMAL_FACE=26
  122. HAPPY_FACE=27
  123. WINKY_FACE=28
  124. ANGRY_FACE=29
  125.  
  126. POINT0=30  ;  the "->" pointer is composed of POINT0 and POINT1
  127. POINT1=31  ;
  128.  
  129. CURSOR=127 ; text cursor
  130.  
  131.